<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<!-- meta -->
<meta name="keywords" content="">
<meta name="description" content="">
<!-- /meta -->
<title>${gamenName}データ 新規追加</title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/headerfooter.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/ulol.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/arrow.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements.css">
<!-- admin -->
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/base_admin.css">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/elements_admin.css">
<!-- /admin -->
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/library.js"></script>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/common/css/for_winie3.css">
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/YahhoCal.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/common/js/GCalHolidays.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>
<SCRIPT type="text/javascript">
	YahhoCal.loadYUI("<%= request.getContextPath() %>/common/yui/build/");
	YahhoCal.format.padZero = true;

	/**
	* field : idキー
	* index : リスト編集番号
	*  kbn  : 0:一般、1:カスタム
	**/
	function popupSelectTm(fieldKey, index, kbn) {
		var url = '<%= request.getContextPath() %>/outputdata/psi-open?fieldKey=' + fieldKey + '&index=' + index + '&kbn=' + kbn + '&popupSign=1';
		 window.open(url,'popupSelectTm', 'width=750, height=800, menubar=no, toolbar=no, scrollbars=yes');
	}

	//親選択Open
	function popupOyaSelectOpen(oyaSort,schemaId) {
		 var url = '<%= request.getContextPath() %>/outputdata/popupIndex?sort=' + oyaSort + '&schemaid=' + schemaId;
		 window.open(url,'popupSearchChild1', 'width=750, height=800, menubar=no, toolbar=no, scrollbars=yes');
	}

	function oyaSelect(id, name) {
		document.getElementById('oyaId').value = id;
		document.getElementById('oyaName').value = name;

		addForm.action ='<%= request.getContextPath() %>/outputdata/oyaselect';
		addForm.submit();
	}

	//親削除
	function deleteParentData() {
		document.getElementById('upperRank').innerHTML = "";
	}

	//ファイルアップロード画面を表示
	function popupUpload(){

		window.open('<%= request.getContextPath() %>/outputdata/popup-upload' , 'child1', 'width=650, height=600, menubar=no, toolbar=no, scrollbars=yes')
	}

	//アップロードファイルのプレビュー画面を表示
	function preview(realfilename, contenttype, filename){

	  window.open('<%= request.getContextPath() %>/outputdata/popup-preview?realfilename='+realfilename+'&contenttype='+contenttype+'&filename='+filename ,'child1', 'width=650, height=800, menubar=no, toolbar=no, scrollbars=yes');
	}

	function doDeleteRow(deleteId) {

		document.getElementById("deleteMutiMediaIndex").value = deleteId;
		addForm.action ="<%= request.getContextPath() %>/outputdata/deleteFileInfo";
		addForm.submit();
	}

	/* realFileName   : アップロードされて実際物理名
	   uploadFileName : アップロードする物理ファイル名
	   fileName       : 画面で設定するファイル名
	   fileDesc       : 画面で設定するファイル説明
	   thumbNail      : thumbNailファイル名
	   fileType       : 0,1 イメージ、動画
	*/
	function fileInfoAdd(realFileName, uploadFileName, fileName, thumbNail, fileType) {

		document.getElementById("addRealFileName").value = realFileName;
		document.getElementById("addUploadFileName").value = uploadFileName;
		document.getElementById("addFileName").value = fileName;
		document.getElementById("addThumbNail").value = thumbNail;
		document.getElementById("addFileType").value = fileType;

		addForm.action ='<%= request.getContextPath() %>/outputdata/addFileInfo';
		addForm.submit();
	}

</SCRIPT>
</head>
<body id="dch" >
<!-- === headerArea === -->
<div id="headerArea">
<a name="pageTop" id="pageTop"></a>
<jsp:include page="/common/include/header.jsp" />
</div><!-- === /headerArea === -->
<!-- === mainArea === -->
<div id="mainArea">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr valign="top">
		<td width="140" id="leftArea">
			<jsp:include page="output_menu.jsp" />
			<!-- /listA01 -->
		</td>
		<td width="20"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="20" height="4" border="0" alt=""></td>
		<td id="contentsArea">
		<!-- === contentsArea === -->
			<!-- headingLv01Block -->
			<div class="headingLv01Block">
				<!-- headingLv01 -->
				<h1>${gamenName}データ 新規追加</h1>
				<!-- /headingLv01 -->
			</div>
			<!-- /headingLv01Block -->
			<!-- columnB01 -->
			<div class="columnB01">
			 <s:fielderror/>
			 <s:actionerror/>
			 <s:actionmessage/>
			</div>
			<!-- /columnB01 -->
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>ヘッダー</em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->
			<form action="<%= request.getContextPath() %>/outputdata/confirm" method="post" id="addForm" name="addForm">

			<s:hidden name="actionType"/>
			<s:hidden name="sort"/>
			<s:hidden name="oyaId"/>
			<s:hidden name="oyaName"/>

		    <!-- ヘッダ情報 -->
		    <s:hidden name="data.sort"/>
		    <s:hidden name="data.id"/>
		    <s:hidden name="data.schemaId"/>
			<s:hidden name="data.createUser"/>
			<s:hidden name="data.createDate"/>
			<s:hidden name="data.modifyUser"/>
			<s:hidden name="data.modifyDate"/>

			<!-- File upload start -->
			<s:hidden name="addFileInfo.realFileName" id = "addRealFileName" />
			<s:hidden name="addFileInfo.uploadFileName" id = "addUploadFileName" />
			<s:hidden name="addFileInfo.fileName" id = "addFileName" />
			<s:hidden name="addFileInfo.thumnail" id = "addThumbNail" />
			<s:hidden name="addFileInfo.contentType" id = "addFileType" />


			<s:hidden name="deleteMutiMediaIndex"/>
			<!-- File upload end -->


			<!-- tableBlock -->
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" width="558">
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="name">データ名称</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:textfield name="data.name" size="35" maxlength="100" cssErrorStyle="background-color: #FFE4E1"/></td>
					</tr>
					<c:if test="${sort != '001'}">
					<tr>
						<!-- ラベル -->
						<th class="lv01B" width="170"><label for="fServiceName">${gamenOyaName}</label></th>
						<!-- エラー -->
						<th width="11" class="error">&nbsp;</th>
						<!-- 内容 -->
						<td><input type="button" value="選択" style="width: 100px" onclick="popupOyaSelectOpen('${oyaSort}','${data.schemaId}')"><p>
				    		<c:if test="${data.oyaId != null and data.oyaId != '0'}">
				    			<div id="upperRank">
				    			<table id="linkTable" width="100%">
			    					<tr>
					    				<td  width="80%">
					    					<s:property value="%{data.oyaName}"/>
					    					<s:hidden name="data.oyaId" />
					    					<s:hidden name="data.oyaName" />
					    				<td width="20%"><input type="button" value="削除" onclick="deleteParentData()"></td>
			    					</tr>
				    			</table>
				    			</div>
				    		</c:if>
						</td>
					</tr>
					</c:if>
						<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createUser">登録者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.createUser}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="createDate">登録日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.createDate}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyUser">最終更新者</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.modifyUser}" /></td>
					</tr>
					<tr>
						<!-- ラベル --><th class="lv01B" width="170"><label for="modifyDate">最終更新日付</label></th>
						<!-- エラー --><th width="11" class="error">&nbsp;</th>
						<!-- 内容 --><td><s:property value="%{data.modifyDate}" /></td>
					</tr>
				</table>
				</div>
				<!-- /tableA01 -->
			</div>
			<!-- /tableBlock -->
			<c:if test="${sort == '007'}">
			<!-- /tableBlock -->
			<div class="headingLv02">
				<table border="0" cellspacing="0" cellpadding="5" width="558">
					<tr>
						<td><p><em>画像・動画情報</em></p></td>
						<td align="right"><div class="tableBtn">
							<p><input type="button" value="追加する" onclick="popupUpload()"></p>
							</div></td>
					</tr>
				</table>
			</div>
			<!-- tableA01 -->
			<div class="tableA01">
				<!-- tableA01 -->
					<div class="tableA01">
					<table border="1" cellspacing="0" cellpadding="5" width="558" id="fileTbl">

						<s:iterator value="dataFileList" status="sta">
						<tr>
							<th class="lv01B" width="10"><label for="fItemImg03">${sta.index+1}</label></th>
							<td width="100"><s:property value="fileName"/></td>
							<td >
								<table border="0" cellspacing="0" cellpadding="0" class="layoutTable">
									<tr>
										<td>
											<img src="<s:property value="%{getText('uploadFolderLink')}"/><s:property value="thumnail"/>"
											width="120" height="120" border="0" alt="" onclick="preview('<s:property value="realFileName"/>','<s:property value="contentType"/>','<s:property value="fileName"/>')">&nbsp;&nbsp;</td>
										<td><input type="button" value="削除" onclick="doDeleteRow('${sta.index}')">&nbsp;&nbsp;</td>
									</tr>
								</table>
								<s:hidden name="dataFileList[%{#sta.index}].realFileName"/>
								<s:hidden name="dataFileList[%{#sta.index}].uploadFileName"/>
								<s:hidden name="dataFileList[%{#sta.index}].fileName" />
								<s:hidden name="dataFileList[%{#sta.index}].thumnail"/>
								<s:hidden name="dataFileList[%{#sta.index}].contentType"/>
							</td>
						</tr>
					</s:iterator>
					</table>
					</div>
					<!-- /tableA01 -->
			</div>
			</c:if>
			<!-- headingLv02 -->
			<div class="headingLv02">
			<table border="0" cellspacing="0" cellpadding="5" width="558">
				<tr>
					<td><p><em>メタデータ</em></p></td>
				</tr>
			</table>
			</div>
			<!-- /headingLv02 -->

			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
					<table border="1" cellspacing="0" cellpadding="5" id="metaTbl" >
						<tr>
							<th class="lv01B" colspan="3">項目</th>
							<th class="lv01B">データ内容</th>
						</tr>
						<s:iterator value="define.list" status="stat">
						<tr>
							<!-- Fieldキー宣言 -->
							<s:set name="fieldKey" value="%{define.list[#stat.index].key}"/>
							<s:set name="dataSchemaDetail" value="%{getDataSchemaDetailByFieldKey(#fieldKey)}"/>
							<s:set name="dataDetail" value="%{getDataDetailByFieldKey(#fieldKey)}"/>

							<s:hidden name= "dataDetailList[%{#stat.index}].fieldKey" value="%{#fieldKey}"/>

							<s:iterator value="itemList" status="itemStat">
								<th class="lv01B" rowspan="${rowspan}" colspan="${colspan}"><s:property value="value" /></th>
							</s:iterator>
							<td>
								<!-- 必須サイン -->
								<s:if test='%{#dataSchemaDetail.hissuSelectSign == "1"}'>
									<font color="red" >*</font>
								</s:if>

								<s:if test='%{#dataSchemaDetail.tmSign == "true"}'>
									<input type="button" value="データ選択" onclick="popupSelectTm('<s:property value="fieldKey"/>','${stat.index}','0')">
									<div id = "${fieldKey}">
										<s:iterator value="#dataDetail.dataName" status="dataStat" var="dataNameobj">
											<s:hidden name= "dataDetailList[%{#stat.index}].dataName" value = "%{#dataNameobj}" />
											<span class="tmData"><s:property value="%{#dataDetail.dataName[#dataStat.index]}" /></span>
											<br/>
										</s:iterator>
										<s:iterator value="#dataDetail.data" status="dataStat" var="dataobj">
											<s:hidden name= "dataDetailList[%{#stat.index}].data" value = "%{#dataobj}" />
										</s:iterator>

									</div>

								</s:if>
								<s:else>
									<!-- 入力タイプ テキスト -->
									<s:if test='%{#dataSchemaDetail.inputType == "0"}'>
										<s:if test='%{#dataSchemaDetail.optionKbn == "0"}'>
											<s:textfield name = "dataDetailList[%{#stat.index}].data" size="43" value="%{#dataDetail.data}" maxlength="100"/>
										</s:if>
										<s:elseif test = '%{actionType == "ADD"}'>
											<s:textfield name = "dataDetailList[%{#stat.index}].data" size="43" value="%{#dataSchemaDetail.options}" maxlength="100"/>
										</s:elseif>
										<s:else>
											<s:textfield name = "dataDetailList[%{#stat.index}].data" size="43" value="%{#dataDetail.data}" maxlength="100"/>
										</s:else>
									</s:if>
									<!-- 入力タイプ テキストエリア -->
									<s:elseif test='%{#dataSchemaDetail.inputType == "1"}'>
										<s:textarea name = "dataDetailList[%{#stat.index}].data" cols="35" rows="6" value="%{#dataDetail.data}"/>
									</s:elseif>
									<!-- 入力タイプ ドロップダウンリスト -->
									<s:elseif test='%{#dataSchemaDetail.inputType == "2"}'>
										<s:if test='%{#dataSchemaDetail.optionKbn == "0"}'>
											<s:select list="%{makeOptionList(#fieldKey)}" name="dataDetailList[%{#stat.index}].data" emptyOption="true" value="%{#dataDetail.data}"/>
										</s:if>
										<s:else>
											<s:select list="%{makeOptionList(#fieldKey)}" name="dataDetailList[%{#stat.index}].data" multiple="true" value="%{#dataDetail.data}"/>
										</s:else>
									</s:elseif>
									<!-- 入力タイプ ラジオボタン -->
									<s:elseif test='%{#dataSchemaDetail.inputType == "3"}'>
										<s:if test='%{#dataSchemaDetail.optionKbn == "0"}'>
											<s:radio list="%{makeOptionList(#fieldKey)}" name="dataDetailList[%{#stat.index}].data" value="%{#dataDetail.data}"/>
										</s:if>
										<s:else>
											<s:radio list="%{makeOptionList(#fieldKey)}" name="dataDetailList[%{#stat.index}].data" value="%{#dataDetail.data}"/>
											<s:textfield name = "dataDetailList[%{#stat.index}].otherdata" size="23" value="%{#dataDetail.otherdata}"/>
										</s:else>

									</s:elseif>
									<!-- 入力タイプ チェックボックス -->
									<s:elseif test='%{#dataSchemaDetail.inputType == "4"}'>
										<s:if test='%{#dataSchemaDetail.optionKbn == "0"}'>
											<s:checkboxlist list="%{makeOptionList(#fieldKey)}" name="dataDetailList[%{#stat.index}].data" value="%{#dataDetail.data}"/>
										</s:if>
										<s:else>
											<s:checkboxlist list="%{makeOptionList(#fieldKey)}" name="dataDetailList[%{#stat.index}].data" value="%{#dataDetail.data}"/>
											<s:textfield name ="dataDetailList[%{#stat.index}].otherdata" size="23"/>
										</s:else>

									</s:elseif>
									<!-- 入力タイプ 日付 -->
									<s:elseif test='%{#dataSchemaDetail.inputType == "5"}'>
										<s:textfield id="dataDetailList%{#stat.index}" name="dataDetailList[%{#stat.index}].data"  size="23" maxlength="10" value="%{#dataDetail.data}"/>
										<img  src="<%= request.getContextPath() %>/common/images/Calendar.png" onclick="YahhoCal.render('dataDetailList${stat.index}');"/>
									</s:elseif>
									<s:elseif test='%{#dataSchemaDetail.inputType == "6"}'>
										*複数テキスト(改行毎に一つの値になります。)
										<p/>
										<s:textarea name = "dataDetailList[%{#stat.index}].data" cols="35" rows="6" value="%{#dataDetail.data}"/>
									</s:elseif>
									<s:elseif test='%{#dataSchemaDetail.inputType == "7"}'>
										{<s:property value="%{#dataSchemaDetail.fieldDisplayname}" />}
									</s:elseif>
									<s:else>
										エラー
									</s:else>
								</s:else>



							</td>
						</tr>
						</s:iterator>
					</table>
					</div>
				<!-- /tableA01 -->
			</div>
			<s:if test='customItemList.size != 0'>
			<div class="tableBlock">
				<!-- tableA01 -->
				<div class="tableA01">
				<table border="1" cellspacing="0" cellpadding="5" id="customTagTbl">
					<tr>
						<th class="lv01B">項目</th>
						<th class="lv01B">内容</th>
					</tr>
					<s:iterator value="customItemList" status="customItemStat">
					<s:set name= "fieldKey" value="%{customItemList[#customItemStat.index].fieldKey}"/>
					<s:set name="customDataSchemaDetail" value="%{getDataSchemaDetailByFieldKey(#fieldKey)}"/>
					<s:set name="customDataDetail" value="%{getDataDetailByFieldKey(#fieldKey)}"/>
					<tr>
						<td>
							<c:out value="${fieldItemName}" />
							<s:hidden name="customItemList[%{#customItemStat.index}].fieldItemName"/>
						</td>
						<td>
							<s:hidden name= "customDataDetailList[%{#customItemStat.index}].fieldKey" value="%{#fieldKey}"/>
							<!-- 必須サイン -->
							<s:if test='%{#customDataSchemaDetail.hissuSelectSign == "1"}'>
								<font color="red" >*</font>
							</s:if>

							<s:if test='%{#customDataSchemaDetail.tmSign == "true"}'>
								<input type="button" value="データ選択" onclick="popupSelectTm('<s:property value="fieldKey"/>','${customItemStat.index}','1')">
								<div id = "${fieldKey}">
									<s:iterator value="customDataDetailList[#customItemStat.index].dataName" status="dataStat">
										<s:hidden name= "customDataDetailList[%{#customItemStat.index}].dataName" value = "%{customDataDetailList[#customItemStat.index].dataName[#dataStat.index]}" />
										<span class="tmData"><s:property value="%{customDataDetailList[#customItemStat.index].dataName[#dataStat.index]}" /></span>
										<br/>
									</s:iterator>
									<s:hidden name = "customDataDetailList[%{#customItemStat.index}].data" value="%{#customDataDetail.data}" cssClass="tmData"/>
								</div>
							</s:if>
							<s:else>
								<!-- 入力タイプ テキスト -->
								<s:if test='%{#customDataSchemaDetail.inputType == "0"}'>
									<s:if test='%{#customDataSchemaDetail.optionKbn == "0"}'>
										<s:textfield name = "customDataDetailList[%{#customItemStat.index}].data" size="43" value="%{#customDataDetail.data}"/>
									</s:if>
									<s:elseif test = '%{#actionType == "ADD"}'>
										<s:textfield name = "customDataDetailList[%{#customItemStat.index}].data" size="43" value="%{getDataSchemaDetailByFieldKey(#fieldKey).options}"/>
									</s:elseif>
									<s:else>
										<s:textfield name = "customDataDetailList[%{#customItemStat.index}].data" size="43" value="%{#customDataDetail.data}"/>
									</s:else>
								</s:if>
								<!-- 入力タイプ テキストエリア -->
								<s:elseif test='%{#customDataSchemaDetail.inputType == "1"}'>
									<s:textarea name = "customDataDetailList[%{#customItemStat.index}].data" cols="35" rows="6" value="%{#customDataDetail.data}"/>
								</s:elseif>
								<!-- 入力タイプ ドロップダウンリスト -->
								<s:elseif test='%{#customDataSchemaDetail.inputType == "2"}'>
									<s:if test='%{#customDataSchemaDetail.optionKbn == "0"}'>
										<s:select list="%{makeOptionList(#fieldKey)}" name="customDataDetailList[%{#customItemStat.index}].data" emptyOption="true" value="%{#customDataDetail.data}"/>
									</s:if>
									<s:else>
										<s:select list="%{makeOptionList(#fieldKey)}" name="customDataDetailList[%{#customItemStat.index}].data" multiple="true" value="%{#customDataDetail.data}"/>
									</s:else>
								</s:elseif>
								<!-- 入力タイプ ラジオボタン -->
								<s:elseif test='%{#customDataSchemaDetail.inputType == "3"}'>
									<s:if test='%{#customDataSchemaDetail.optionKbn == "0"}'>
										<s:radio list="%{makeOptionList(#fieldKey)}" name="customDataDetailList[%{#customItemStat.index}].data" value="%{#customDataDetail.data}"/>
									</s:if>
									<s:else>
										<s:radio list="%{makeOptionList(#fieldKey)}" name="customDataDetailList[%{#customItemStat.index}].data" value="%{#customDataDetail.data}"/>
										<s:textfield name = "customDataDetailList[%{#customItemStat.index}].otherdata" size="23"/>
									</s:else>

								</s:elseif>
								<!-- 入力タイプ チェックボックス -->
								<s:elseif test='%{#customDataSchemaDetail.inputType == "4"}'>
									<s:if test='%{#customDataSchemaDetail.optionKbn == "0"}'>
										<s:checkboxlist list="%{makeOptionList(#fieldKey)}" name="customDataDetailList[%{#customItemStat.index}].data" value="%{#customDataDetail.data}"/>
									</s:if>
									<s:else>
										<s:checkboxlist list="%{makeOptionList(#fieldKey)}" name="customDataDetailList[%{#customItemStat.index}].data" value="%{#customDataDetail.data}"/>
										<s:textfield name ="customDataDetailList[%{#customItemStat.index}].otherdata" size="23"/>
									</s:else>

								</s:elseif>
								<!-- 入力タイプ 日付 -->
								<s:elseif test='%{#customDataSchemaDetail.inputType == "5"}'>
									<s:textfield id="customDataDetailList%{#sts.index}" name="customDataDetailList[%{#customItemStat.index}].data"  size="23" maxlength="10" value="%{#customDataDetail.data}"/>
									<img  src="<%= request.getContextPath() %>/common/images/Calendar.png" onclick="YahhoCal.render('customDataDetailList${sts.index}');"/>
								</s:elseif>

								<s:elseif test='%{#customDataSchemaDetail.inputType == "6"}'>
									*複数テキスト(改行毎に一つの値になります。)
									<p/>
									<s:textarea name = "customDataDetailList[%{#customItemStat.index}].data" cols="35" rows="6" value="%{#customDataDetail.data}"/>
								</s:elseif>
								<s:elseif test='%{#customDataSchemaDetail.inputType == "7"}'>
										{<s:property value="%{#customDataSchemaDetail.fieldDisplayname}" />}
									</s:elseif>
								<s:else>
										エラー
									</s:else>
							</s:else>
						</td>
					</tr>
					</s:iterator>
				</table>
				</div>
			</div>
			</s:if>
			<!-- pageNaviC01 -->
			<div class="pageNaviC01">
			<table border="0" cellspacing="0" cellpadding="10" width="558">
				<tr>
					<td width="298" class="left"><p><input type="button" value="キャンセル" style="width:100px" onclick="location.href='<%= request.getContextPath() %>/output/modoru'"></p></td>
					<td width="130" class="left">&nbsp;</td>
					<td width="130" class="right"><p><input type="submit" value="確認する" style="width:130px"></p></td>
				</tr>
			</table>
			</div>
			<!-- /pageNaviC01 -->
			</form>
		<!-- === /contentsArea === -->
		</td>
		<td width="16"><img src="<%= request.getContextPath() %>/common/images/spacer.gif" width="16" height="4" border="0" alt=""></td>
	</tr>
</table>
</div><!-- === /mainArea === -->
<!-- === footerArea === -->
<div id="footerArea">
<jsp:include page="/common/include/footer.jsp" />
</div><!-- === /footerArea === -->
</body>
</html>
<!-- System Architect is COOBA Corp
	Copyright 2010 COOBA Corp All rights reserved -->